package com.jvm.demo;

import java.io.*;
import java.util.Optional;
import java.util.TreeMap;
import java.util.stream.IntStream;

/**
 * @author ：qs
 * @date ：Created in 2022/5/22
 * @description：
 * @modified By：
 */
public class Demo1 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
//        ObjectOutputStream objectOutputStream = new ObjectOutputStream( new FileOutputStream("/Users/aoyama/idea/learnparent/learn-jvm/src/main/java/com/jvm/demo/text.out"));
//        Student student = new Student();
//        student.setAge(25);
//        student.setName("jayWei");
//        Student.gender = "女";
//        System.out.println(student);
//        System.out.println("-------------");
//        objectOutputStream.writeObject(student);
//
//        objectOutputStream.flush();
//        objectOutputStream.close();
//
//        ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream("/Users/aoyama/idea/learnparent/learn-jvm/src/main/java/com/jvm/demo/text.out"));
//        Student student1 = (Student) objectInputStream.readObject();
//        System.out.println(student1.toString());
        new Demo1().compare1();
    }

    public void compare1(){
        int a = 0;
        if (a != 0) {
            a = 10;
        } else {
            a = 20;
        }
        System.out.println(a);
    }
}
